<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../js/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="../../css/footer.css" />
		<link rel="stylesheet" type="text/css" href="../../css/swiper-3.4.2.min.css" />
		<link rel="stylesheet" type="text/css" href="css/manager.css"/>
		<script src="../../js/flexible.min.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			.biaoBox{
				font-size: 0.4rem;
				font-weight: 500;
				background-color: #FFFFFF;
			}
			.biaoBox .item{
				border-top: 1px solid #F7F7F7;
				/*border-top: 1px solid #e93340;*/
				padding-top: 0.2rem;
			
			}
			.itemLeft,.itemRight{
				padding-left: 0.3rem;
				float: left;
			}
			.itemLeft{
				width: 7rem;
			}
			.itemLeft .grey{
				color: grey;
			}
			.itemRight{
				width: 3rem;
			}

		</style>
	</head>
	<body>
		<div id="wrap">
			<div id="main">
				<div id="header">
					<a id="headImg" href="javascript:history.go(-1)"><img class="headImg" src="../../images/12.png" /></a>
					<p id="headTitle" style="font-size: 16px;">行动积分</p>
				</div>
				<div id="content">
					<h3 style="text-align: center;">统计报表</h3>
					<div class="biaoBox" style=" " id="biaoBox">
						<!--<div class="item">
							<div class="itemLeft">
								<span>日报</span><br>
								<span class="grey">工作日志：<label class="grey">240</label> </span>
							</div>
							<div class="itemRight">
								<span>奖分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="item">
							<div class="itemLeft">
								<span>日报</span><br>
								<span class="grey">工作总结：<label class="grey">260</label> </span>
							</div>
							<div class="itemRight">
								<span>奖分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="item">
							<div class="itemLeft">
								<span>工作任务</span><br>
								<span class="grey">项目开发：<label class="grey">20</label> </span>
							</div>
							<div class="itemRight">
								<span>奖分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="item">
							<div class="itemLeft">
								<span>工作任务</span><br>
								<span class="grey">原型设计：<label class="grey">20</label> </span>
							</div>
							<div class="itemRight">
								<span>奖分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="item">
							<div class="itemLeft">
								<span>工作任务</span><br>
								<span class="grey">市场推广：<label class="grey">40</label> </span>
							</div>
							<div class="itemRight">
								<span>奖分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="item">
							<div class="itemLeft">
								<span>工作任务</span><br>
								<span class="grey">渠道拓展：<label class="grey">20</label> </span>
							</div>
							<div class="itemRight">
								<span>奖分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="item">
							<div class="itemLeft">
								<span>工作任务</span><br>
								<span class="grey">培训课程：<label class="grey">20</label> </span>
							</div>
							<div class="itemRight">
								<span>奖分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="item">
							<div class="itemLeft">
								<span>工作任务</span><br>
								<span class="grey">网络推广：<label class="grey">40</label> </span>
							</div>
							<div class="itemRight">
								<span>奖分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="item">
							<div class="itemLeft">
								<span>工作任务</span><br>
								<span class="grey">文案策划：<label class="grey">20</label> </span>
							</div>
							<div class="itemRight">
								<span>奖分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="item">
							<div class="itemLeft">
								<span>工作任务</span><br>
								<span class="grey">平面设计：<label class="grey">20</label> </span>
							</div>
							<div class="itemRight">
								<span>奖分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="item">
							<div class="itemLeft">
								<span>工作任务</span><br>
								<span class="grey">财务核算：<label class="grey">20</label> </span>
							</div>
							<div class="itemRight">
								<span>奖分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="item">
							<div class="itemLeft">
								<span>工作表现</span><br>
								<span class="grey">工作积极：<label class="grey">80</label> </span>
							</div>
							<div class="itemRight">
								<span>奖分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="item">
							<div class="itemLeft">
								<span>工作任务</span><br>
								<span class="grey">超额完成任务：<label class="grey">140</label> </span>
							</div>
							<div class="itemRight">
								<span>奖分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="item">
							<div class="itemLeft">
								<span>工作任务</span><br>
								<span class="grey">加班：<label class="grey">60</label> </span>
							</div>
							<div class="itemRight">
								<span>奖分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="item">
							<div class="itemLeft">
								<span>工作任务</span><br>
								<span class="grey">延迟完成任务：<label class="grey">30</label> </span>
							</div>
							<div class="itemRight">
								<span>扣分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="item">
							<div class="itemLeft">
								<span>工作任务</span><br>
								<span class="grey">没有完成任务：<label class="grey">50</label> </span>
							</div>
							<div class="itemRight">
								<span>扣分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="item">
							<div class="itemLeft">
								<span>工作任务</span><br>
								<span class="grey">工作消极：<label class="grey">20</label> </span>
							</div>
							<div class="itemRight">
								<span>扣分</span><br>
								<span>2017.01.01</span>
							</div>
							<div style="clear: both;"></div>
						</div>-->
					</div>
				</div>
			</div>
			<div id="foot" class="row">
				<a class="foot col-xs-3 col-sm-3" href="../kaoqin/index2.html">
					<img class="footImg" src="../../images/guanlixuanzhong.png" />
					<p>管理</p>
				</a>
				<a class="foot col-xs-3 col-sm-3" href="../coalition/colalition.html">
					<img class="footImg" src="../../images/lianmengchushi.png" />
					<p>联盟</p>
				</a>
				<a class="foot col-xs-3 col-sm-3" href="../store/store.html">
					<img class="footImg" src="../../images/11.png" />
					<p>商城</p>
				</a>
				<a class="foot col-xs-3 col-sm-3" href="../personage/personIndex.html">
					<img class="footImg" src="../../images/13.png" />
					<p>我的</p>
				</a>
			</div>
		</div>

	</body>
	<script src="../../js/jquery-2.2.3.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../js/bootstrap-3.3.7-dist/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../js/handlebars-v2.0.0.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../js/rhAdmin.js" type="text/javascript" charset="utf-8"></script>
	
	
	<script type="text/javascript">
		$(function() {
			getJf();
		});
		//查询会员的积分数，暂时默认会员id为1
		function getJf(){
			$.ajax({
				cache: false,
				type: "GET",
				url: "http://10.0.47.157:5555/attencepoint-service/tfPointDetailLists?memberId=1&biId=1&status=xd&startDate=2017-11-01&endDate=2017-11-28",
				async: false,
				success: function(data) {
					console.log(data);
					if(data != null){
						var html = "";
						for(var i=0;i<data.length;i++){
							if(data[i].pdStatus == "jc"){
								html += '<div class="item"><div class="itemLeft"><span>基础积分</span><br><span class="grey">'+data[i].pdRemark+'：<label class="grey">'+data[i].pdNum+'</label> </span></div><div class="itemRight"><span>';
								if(data[i].pdNum > 0 ){
									html += '奖分</span><br><span>'+data[i].pdDate+'</span></div><div style="clear: both;"></div></div>';
								}else{
									html += '扣分</span><br><span>'+data[i].pdDate+'</span></div><div style="clear: both;"></div></div>';
								}
							}else if(data[i].pdStatus == "kq"){
								html += '<div class="item"><div class="itemLeft"><span>考勤积分</span><br><span class="grey">'+data[i].pdRemark+'：<label class="grey">'+data[i].pdNum+'</label> </span></div><div class="itemRight"><span>';
								if(data[i].pdNum > 0 ){
									html += '奖分</span><br><span>'+data[i].pdDate+'</span></div><div style="clear: both;"></div></div>';
								}else{
									html += '扣分</span><br><span>'+data[i].pdDate+'</span></div><div style="clear: both;"></div></div>';
								}
							}else if(data[i].pdStatus == "xd"){
								html += '<div class="item"><div class="itemLeft"><span>行动积分</span><br><span class="grey">'+data[i].pdRemark+'：<label class="grey">'+data[i].pdNum+'</label> </span></div><div class="itemRight"><span>';
								if(data[i].pdNum > 0 ){
									html += '奖分</span><br><span>'+data[i].pdDate+'</span></div><div style="clear: both;"></div></div>';
								}else{
									html += '扣分</span><br><span>'+data[i].pdDate+'</span></div><div style="clear: both;"></div></div>';
								}
							}
							
						}
						document.getElementById('biaoBox').innerHTML = html;
					}
				}
			});
		}
	</script>

</html>